/*package lab02.test17;*/

/*public class Arrary {
    //属性

    //行为
    double print(double[] arr) {
        double[] arr1 = new double[arr.length];
        max = arr[0];
        min = arr[0];

        for (int i = 0; i < arr.length; i++) {
            if (max < arr1[i]) {
                max = arr1[i];
                //System.out.println("最大值为：" + max + "\t" + "为第" + i + "个数！");
            }

            if (min > arr1[i]) {
                min = arr[i];
                //System.out.println("最小值为：" + min + "\t" + "为第" + i + "个数！");
            }
            System.out.println("最大值为：" + max + "\t" + "为第" + i + "个数！");
            System.out.println("最小值为：" + min + "\t" + "为第" + i + "个数！");
        }

        return 0;
    }

    double max(double[] arr) {
        double[] arr1 = new double[arr.length];
        double max=arr1[0];
        for (int i = 0; i < arr1.length; i++) {
            if (max < arr1[i]) {
                max = arr1[i];
            }
        }
        return max;
    }

    double min(double[] arr) {
        double[] arr2 = new double[arr.length];
        double min=arr2[0];
        for (int i = 0; i < arr2.length; i++) {
            if (min > arr2[i]) {
                min = arr2[i];
            }
        }
        return min;
    }

}*/
